package com.common.common;

import io.reactivex.Observable;

public abstract class UseCase<Request,Result> {

    public Observable<Result> execute(){
        return  execute(null);
    }

    public Observable<Result> execute(Request request){
        return build(request);
    }

    public abstract Observable<Result> build(Request request);
}
